﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            for (int i = 1; i < 10; i++)
            {
                for (int j = 1; j <= i; j++)
                {
                    Console.Write(i +"X"+ j+ "="+ i*j+"\t");
                }
                Console.WriteLine();
            }



            int o = 1;
            int sum = 0;
            while (o <= 5)
            {
                sum += o;
                Console.WriteLine(o);
                o++;
            }
            Console.WriteLine(sum);
             


            int h = 1;
            int sum1 = 0;
            do
            {
                sum1 += h;
                Console.WriteLine(h);
                h++;
            } while (h <= 5);
            Console.WriteLine(sum1);

        }
    }
}
